# -*- encoding: utf-8 -*-
"""
@File    : practice.py
@Time    : 2020/10/27 21:05
@Author  : lluyao
@Email   : lluyao61@163.com
@Software: PyCharm
"""
#
#
# with open("song.txt","rb") as fs:
#     for i in range(5):
#         print(fs.readline().decode("utf-8"))
#     fs.seek(0,0)
#     print(fs.read().decode("utf-8"))
#     fs.seek(-12,2)
#     print(fs.read().decode("utf-8"))
#     fs.seek(-12,2)
#     print(fs.read().decode("utf-8"))
#
#
#
with open("song.txt","rb") as f:
    for i in range(5):
        print(f.readline().decode("utf-8"),end="")
    f.seek(0,0)
    print(f.read().decode("utf-8"))
    f.seek(-12,2)
    print(f.read().decode("utf-8"))
    f.seek(-12,2)
    print(f.readline().decode("utf-8"))
